package com.xyy.saas.payment.dao.model;

import java.util.Date;

/**
 * 提现单详情
 * @author automodel
 * @date   2019/11/09
 */
public class WithdrawOrder {

    /**
     * 状态： 已创建
     */
    public static Byte STATUS_CREATE = -1;

    /**
     * 状态： 提现中
     */
    public static Byte STATUS_IN = 0;

    /**
     * 状态 ： 提现完成
     */
    public static Byte STATUS_FINISH = 1;

    /**
     * 状态 ： 提现失败
     */
    public static Byte STATUS_FAIL = 2;

    /**
     * 状态 ： 提现取消
     */
    public static Byte STATUS_CANCEL = 2;

    /**
     * 状态 ： 提现退汇
     */
    public static Byte STATUS_REFUND = 15;
    /**
     * 自增主键id
     */
    private Long id;

    /**
     * 交易单号
     */
    private String withdrawNo;

    /**
     * 渠道提现单号
     */
    private String channelWithdrawNo;

    /**
     * 第三方渠道名
     */
    private String channel;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 交易金额(分)
     */
    private Integer amount;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 成功时间
     */
    private Date successTime;

    /**
     * 状态修改时间
     */
    private Date updateTime;

    /**
     * 提现单状态(0 未成功 1 已完成 2 提现失败)
     */
    private Byte status;

    private Integer fee;

    private String callBackUrl;

    /**
     * 商家名称
     */
    private String businessUserName;

    /**
     * 业务提现单号
     */
    private String businessWithdrawNo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWithdrawNo() {
        return withdrawNo;
    }

    public void setWithdrawNo(String withdrawNo) {
        this.withdrawNo = withdrawNo;
    }

    public String getChannelWithdrawNo() {
        return channelWithdrawNo;
    }

    public void setChannelWithdrawNo(String channelWithdrawNo) {
        this.channelWithdrawNo = channelWithdrawNo;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getSuccessTime() {
        return successTime;
    }

    public void setSuccessTime(Date successTime) {
        this.successTime = successTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Integer getFee() {
        return fee;
    }

    public void setFee(Integer fee) {
        this.fee = fee;
    }

    public String getCallBackUrl() {
        return callBackUrl;
    }

    public void setCallBackUrl(String callBackUrl) {
        this.callBackUrl = callBackUrl;
    }

    public String getBusinessUserName() {
        return businessUserName;
    }

    public void setBusinessUserName(String businessUserName) {
        this.businessUserName = businessUserName;
    }

    public String getBusinessWithdrawNo() {
        return businessWithdrawNo;
    }

    public void setBusinessWithdrawNo(String businessWithdrawNo) {
        this.businessWithdrawNo = businessWithdrawNo;
    }
}